# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=vixl
pkgver=7.0.0
pkgrel=0
pkgdesc="AArch32 and AArch64 Runtime Code Generation Library"
url="https://github.com/Linaro/vixl"
arch="aarch64 armv7"
license="BSD-3-Clause"
makedepends="meson"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/Linaro/vixl/archive/refs/tags/$pkgver.tar.gz
	0001-vixl-Meson-support.patch
	"

build() {
	abuild-meson \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
4b883151b363a71e0b2109a544832be46d87a51de782d65cca66f5bf3f1f1e2c8c6fd42a180b95bd784b72f62a17fd659b05674579ed9566e8ba3a364dcbfd5f  vixl-7.0.0.tar.gz
158a3f3c34fe3b2a422c6cab2c98d6255f3c2f5a2c9c56401a992a01fa1943dd39a5cb8edcff39d9923f7c2498a8826062b0e5dceb002ed7355fd5ed2edea70d  0001-vixl-Meson-support.patch
"
